#ifndef GOAL_GLOBAL_H
#define GOAL_GLOBAL_H

#include "npu_robot/goal_class.h"

#define GOAL_MAX_NUM 10

enum GoalDirection
{
    GOAL_FORWARD,
    GOAL_BACKWARD
};

class GoalGlobal
{
private:
    GoalClass *goal;
    GoalClass *goalList[GOAL_MAX_NUM];
    int goalIndex;
    int goalNumber;

    GoalDirection goalDirection;

public:
    void init(void);
    void goalRegister(GoalClass *newGoal);

    GoalClass *getNextGoal(bool reset = false);
};

extern GoalGlobal goalGlobal;

#endif
